package com.bawei.property.api

import com.bawei.common.api.BaseApiServer
import com.bawei.common.entity.BaseResultEntity
import com.bawei.property.entity.CarApplyResultEntity
import com.bawei.property.entity.CarColorResultEntity
import com.bawei.property.entity.ParkApplyResultEntity
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 * Author: Jason Zhang
 * Date: 2024/5/29
 * Desc: 物业管理API
 */
interface PropertyApiServer: BaseApiServer {

    @POST("/sysParking/selParking")
    suspend fun getParkingList(): CarApplyResultEntity

    @POST("/sysApply/selAllApply")
    suspend fun getParkApplyList(@Body body: RequestBody): ParkApplyResultEntity
    //获取车辆颜色信息
    @POST("/sysColor/selColor")
    suspend fun getCarColors(): CarColorResultEntity
    //上传车辆图片
    @Multipart
    @POST("fileUpload")
    suspend fun  uploadCarImages(@Part list: MutableList<MultipartBody.Part>): BaseResultEntity

    @POST("/sysCar/addCar")
    suspend fun addCar(@Body body: RequestBody)

    @POST("/sysCar/addCarImg")
    suspend fun addCarImages(@Body body: RequestBody)

    //添加车辆申请
    @POST("/sysParking/applyParking")
    suspend fun addParkApply(@Body body: RequestBody)





}